<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/4/6
  Time: 16:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>实验四第二个index界面</title>
</head>
<body>
<jsp:directive.page import="com.study.experiment04.entity.User"/>
<%
    User user = (User) session.getAttribute("user");
    String dateTime = (String) session.getAttribute("loginTime");
    String sessionId = (String) session.getAttribute("sessionId");
%>
Hello,this is an index page.<p>
    用户名：<%=user.getUsername()%><p>
    密码：<%=user.getPassword()%><p>
    登陆时间：<%=dateTime %><p>
    SessionId：<%=sessionId %><p>
</body>
</html>
